package com.bz.portal.controller;

import com.bz.portal.service.ContentService;
import com.bz.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 首页内容管理Controller
 */
@RestController
@RequestMapping("/frontend/content")
public class ContentController {

    @Autowired
    private ContentService contentService;
    /**
     * 查询首页大广告位
     * @return
     */
    @GetMapping("/selectFrontendContentByAD")
    public Result selectFrontendContentByAD(){
        return contentService.selectFrontendContentByAD();
    }
}
